package bs

import net.liftweb.json.JsonParser.Segment
import scala.xml.NodeSeq
import net.liftweb.http.Templates
import net.liftweb._
import http._
import util._
import Helpers._

case class Pagination(links: Link*) extends LiftComponent {
  override val template: NodeSeq = Templates("templates-hidden" :: "bs" :: "_pagination" :: Nil).get

  override def transformer: (NodeSeq) => NodeSeq = "li" #> links.map(link =>
    "li *" #> link.render
  )
}
